import {request} from "@/request/request.js"

//获取会员套餐列表接口
export const getVIPRoles =()=>{
	return request({
		url:'/roles'
	})
}

//优惠码检测接口
export const checkCode = (code)=>{
	return request({
		url:`/promoCode/${code}/check`
	})
}

//创建套餐订单接口
export const setOeder = (data)=>{
	return request({
		url:'/order/role',
		data,
		method:'post'
	})
}

//小程序支付接口
export const pay =(data)=>{
	return request({
		url:'/order/payment/wechat/mini',
		method:'post',
		data
	})
}